import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@/mock/mockServe";
import "@/utils/validate"
Vue.config.productionTip = false;
import Carsousel from "@/components/Carousel";
Vue.component(Carsousel.name, Carsousel);
import TypeNav from "@/components/TypeNav";
Vue.component(TypeNav.name, TypeNav);
import vuelazy from "vue-lazyload"
//引入swiper样式
import { Pagination, Message, MessageBox, Button } from "element-ui";
 
Vue.use(Pagination);
Vue.use(Button);
Vue.use(vuelazy,{loading:'/images/loading-bars.svg'})
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$message = Message;
Vue.prototype.$msgbox = MessageBox;
import * as API from "@/api/all";
import "swiper/css/swiper.css";

new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this;
    Vue.prototype.$API = API;
  },
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
